package com.asset.model.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 折旧记录表
 */

public class DepreciationRecord {
    //主键
    private Integer id;

    //折旧公司id
    private Integer companyId;

    //折旧月份
    private String depreciationMonth;

    //参与折旧资产数量
    private Integer assetCount;

    //折旧总金额
    private Double totalDepreciation;

    //总原值
    private Double totalOriginal;

    //折旧前总净值
    private Double totalNetBefore;

    //折旧后总净值
    private Double totalNetAfter;

    //操作人Id
    private Integer operatorId;

    //操作时间
    private Date operateTime;

    //明细列表
    private List<DepreciationDetail> depreciationDetails = new ArrayList<>();

    public List<DepreciationDetail> getDepreciationDetails() {
        return depreciationDetails;
    }

    public void setDepreciationDetails(List<DepreciationDetail> depreciationDetails) {
        this.depreciationDetails = depreciationDetails;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getDepreciationMonth() {
        return depreciationMonth;
    }

    public void setDepreciationMonth(String depreciationMonth) {
        this.depreciationMonth = depreciationMonth;
    }

    public Integer getAssetCount() {
        return assetCount;
    }

    public void setAssetCount(Integer assetCount) {
        this.assetCount = assetCount;
    }

    public Double getTotalDepreciation() {
        return totalDepreciation;
    }

    public void setTotalDepreciation(Double totalDepreciation) {
        this.totalDepreciation = totalDepreciation;
    }

    public Double getTotalOriginal() {
        return totalOriginal;
    }

    public void setTotalOriginal(Double totalOriginal) {
        this.totalOriginal = totalOriginal;
    }

    public Double getTotalNetBefore() {
        return totalNetBefore;
    }

    public void setTotalNetBefore(Double totalNetBefore) {
        this.totalNetBefore = totalNetBefore;
    }

    public Double getTotalNetAfter() {
        return totalNetAfter;
    }

    public void setTotalNetAfter(Double totalNetAfter) {
        this.totalNetAfter = totalNetAfter;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    @Override
    public String toString() {
        return "DepreciationRecord{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", depreciationMonth='" + depreciationMonth + '\'' +
                ", assetCount='" + assetCount + '\'' +
                ", totalDepreciation=" + totalDepreciation +
                ", totalOriginal=" + totalOriginal +
                ", totalNetBefore=" + totalNetBefore +
                ", totalNetAfter=" + totalNetAfter +
                ", operatorId=" + operatorId +
                ", operateTime=" + operateTime +
                ", depreciationDetails=" + depreciationDetails +
                '}';
    }
}
